{% extends 'page_layout_single.html' %}
{% block layout_content %}
<div class="twelve">
    <div class="left">
    {% for picture in page.picture_set.all|slice:":6" %}
    {% include 'picture_block.html' with picture=picture page=page %}
    {% empty %}
    {% include 'no_pictures_block.html' with page=page %}
    {% endfor %}
    </div>
    <div class="right">
    {% for picture in page.picture_set.all|slice:"6:12" %}
        {% include 'picture_block.html' with picture=picture %}

    {% endfor %}
        {% with length=page.picture_set.all|length %}
        {% if length < 12 and length > 0 %}
        {% include 'no_picture_block.html' with page=page %}
        {% endif %}
        {% endwith %}
        </div>
        </div>
{% endblock %}
